package com.aatattoo.light_food_service.service;

import com.aatattoo.light_food_service.entity.Verification;
import com.aatattoo.light_food_service.mapper.VerificationMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @Author aatattoo
 * @Date 2021/12/14 8:11 下午
 * @msg:
 */
@Service
@Component
public class VerificationService {
    @Autowired
    private VerificationMapper verificationMapper;
    public int addVerification(Verification verification){
        return verificationMapper.addVerification(verification);
    }

    public int isTableExist(String pheoneNumber){
        return verificationMapper.isTableExist(pheoneNumber);
    }

    public int updataVerification(Verification verification){
        return verificationMapper.updataVerification(verification);
    }

    public Verification findeByPhoneNumber(String pheoneNumber){
        return verificationMapper.findeByPhoneNumber(pheoneNumber);
    }
}
